package com.olddriver.crm.mapper;

import com.olddriver.crm.domain.Carproduct;
import com.olddriver.crm.domain.InsuranceList;
import com.olddriver.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InsuranceListMapper {
    int deleteByPrimaryKey(Long id);

    int insert(InsuranceList record);

    InsuranceList selectByPrimaryKey(Long id);

    List<InsuranceList> selectAll();

    int updateByPrimaryKey(InsuranceList record);


    int queryTotal(QueryObject qo);

    List<InsuranceList> queryRows(QueryObject qo);

    void refuse(Long id);

    void prepareAudit(Long id);

    void passAudit(Long id);

    void sendBack(Long id);

    void insertRelation(@Param("id") Long id, @Param("ids") Long[] ids);


    List<Carproduct> getCarproductByInsuId(Long id);

    int getUndealOrder();

    int getUnpaidOrder();

    void deleteRelation(Long id);
}